package com.gszy.auth.dao;

import com.gszy.auth.database.BeanHandler;
import com.gszy.auth.database.JdbcTemplate;
import com.gszy.auth.entity.Users;

public class UserDao {

    public Users findUserByUsername(String name){
        return new JdbcTemplate().queryForObject(
                "select * from users where usernme=?",
                new BeanHandler<>(Users.class),
                name
        );
    }

}
